<?php

if (!empty($breadcrumb)) {
    include(THEME_GG_DIR_TPL . '/blocks/breadcrumb.block.php');
}
if (!empty($messages)) {
    include(THEME_GG_DIR_TPL . '/blocks/messages.block.php');
}
if (!empty($page['main'])) {
    print render($page['main']);
}else{
    print render($page['content']);
}